package cz.mendelu.swi2.spravaUzivatelu.forms;

import javax.validation.constraints.Size;
import org.hibernate.validator.constraints.Email;
import org.hibernate.validator.constraints.NotEmpty;

public class FRegistration {
	
	@NotEmpty(message="heslo nesmi byt prazdne!")
	@Size(min = 4, max = 20,message="heslo musi mit 4 az 20 znaku")
	private String password;
	@NotEmpty(message="heslo nesmi byt prazdne!")
	private String confirmPassword;
	@NotEmpty(message="email nesmi byt prazdny!")
	@Email(message="neplatna emailova adresa!")
	private String email;
	private boolean teacher;
	public boolean isTeacher() {
		return teacher;
	}
	public void setTeacher(boolean teacher) {
		this.teacher = teacher;
	}
	public void setPassword(String password) {
		this.password = password;
	}

	public String getPassword() {
		return password;
	}

	public void setConfirmPassword(String confirmPassword) {
		this.confirmPassword = confirmPassword;
	}

	public String getConfirmPassword() {
		return confirmPassword;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getEmail() {
		return email;
	}

	
}